package com.cl.service.impl;

import com.cl.mapper.UserMapper;
import com.cl.pojo.User;
import com.cl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public int register(String email, String pwd) {
        return userMapper.register(email,pwd);
    }

    @Override
    public User queryByEmail(String email) {
        return userMapper.queryByEmail(email);
    }

    @Override
    public int modifyPwd(String email,String newPwd) {
        return userMapper.modifyPwd(email,newPwd);
    }

    @Override
    public List<String> queryToday(String today) {
        return userMapper.queryToday(today);
    }
}
